package com.generate.tools.service;

public class MasterFactory {
	
	
	public MasterFactory() {
	}
	
	public IMaster factory(String masterType){
		if("oracle".equalsIgnoreCase(masterType)){
			return  new GenerateEntityOracle();
		}else if("mysql".equalsIgnoreCase(masterType)){
			return new GenerateEntityMysql();
		}
		throw new NullPointerException("MasterFactory.factory:"+masterType);
	}
}
